
#ifndef POINTHANDLER_H
#define POINTHANDLER_H

#include <BNode>
#include <BPointRestraint>
#include <BHandler>

#include <BBody>

using namespace BWE;

class PointHandler : public BHandler
{
public:
	PointHandler();
	~PointHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

private:
	BHolder<BBody>			_nodeA;
	BHolder<BBody>			_nodeB;
	BHolder<BPointRestraint>	_pointRestraint;
};

#endif
